package com.hosever.coreTest;

public class Test20160810 {
	
	public static void main(String[] args) {
		String string = "《1(a)》";
		string = string.replace("(", "\\(");
		string = string.replace(")", "\\)");
		System.out.println(string);
		String originValue = "xxxx《1(a)》xxxx";
		String r = string.replaceAll("《", "<a href='' target=\"_blank\">《");
		r = r.replaceAll("》", "》</a>");
		originValue = originValue.replaceAll(string, r);
		System.out.println(originValue);
	}
}
